export default {
  methods: {
    completeTask: function(data) {
      return this.request({
        url: this.completeTaskUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    },
    claimTask: function(data) {
      return this.request({
        url: this.claimTaskUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    },
    clearAssigneeTask: function(data) {
      return this.request({
        url: this.clearAssigneeTaskUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    },
    assigneeTask: function(data) {
      return this.request({
        url: this.assigneeTaskUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    }
  }
}
